package com.example.myapplication.ui;

import android.content.Intent;
import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.myapplication.R;
import com.example.myapplication.databinding.FragmentAddNoteBinding;

public class AddNoteFragment extends Fragment {
    private FragmentAddNoteBinding binding;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        binding = FragmentAddNoteBinding.inflate(inflater,container,false);

        binding.btnAddNote.setOnClickListener(v -> {
            Intent intent = new Intent(getActivity(), AddNoteActivity.class);
            startActivity(intent);
        });
        return binding.getRoot();
    }

//第二阶段 还有宁一个frag绑定没写。
        //底部导航栏 和frag
        //右边的fragment 有一个加号按钮 会有一个跳转到addactivity 去添加

    }
